home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 46 / Amiga Format CD46 (1999-10-20)(Future Publishing)(GB)[!][issue 1999-12].iso / -in_the_mag- / reader_requests / scilab / man / man-part1 / cat2 / geom3d.2 < prev    next >
Text File  |  1999-09-16  |  1KB  |  67 lines

  1.  
  2.  
  3.  
  4. geom3d(2)                      Scilab Function                      geom3d(2)
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. NAME
  12.   geom3d -  projection from 3D on 2D
  13.  
  14. CALLING SEQUENCE
  15.   [x,y]=geom3d(x1,y1,z1)
  16.  
  17. PARAMETERS
  18.  
  19.   x1,y1,z1       : real matrices of the same size (points in R3)
  20.  
  21.   x,y            : real matrices of the same size as x1,y1 or z1
  22.  
  23. DESCRIPTION
  24.   After having used a 3d plotting function as plot3d, plot3d1 and param3d,
  25.   this function gives the correspondence between a point in R3 space
  26.   (x1(i),y1(i),z1(i)) and the corresponding point in the projected graphic
  27.   plan (x(i),y(j)).  all the graphical primitives working on (x,y) can then
  28.   be used for superposition on a plot3d
  29.  
  30. EXAMPLE
  31.   deff("[z]=surf(x,y)","z=sin(x)*cos(y)");
  32.   t=%pi*(-10:10)/10;
  33.   fplot3d(t,t,surf,35,45,"X@Y@Z");
  34.       //Gives a plot3d
  35.       //now  (t,t,sin(t).*cos(t) ) is a curve on the surface
  36.       //which can be drawn using param3d or the following code
  37.   [x,y]=geom3d(t,t,sin(t).*cos(t));
  38.   xpoly(x,y,"lines")
  39.       //adding a comment
  40.   [x,y]=geom3d([0,0],[0,0],[5,0]);
  41.   xsegs(x,y);
  42.   xstring(x(1),y(1)," The point (0,0,0)");
  43.  
  44. AUTHOR
  45.   J.Ph.C.
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.